package com.dx.financehy.config.security;

import com.dx.financehy.utils.enums.LoginMode;
import lombok.Getter;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

/**
 * <pre>
 * @描述：
 * @作者：CLD
 * @创建时间：2022-06-24 15:20
 * </pre>
 **/
@Getter
public class MyUsernamePasswordAuthenticationToken extends UsernamePasswordAuthenticationToken {

    private LoginMode loginMode;

    public MyUsernamePasswordAuthenticationToken(Object principal, Object credentials) {
        super(principal, credentials);
    }

    public MyUsernamePasswordAuthenticationToken(Object principal, Object credentials, LoginMode loginMode) {
        super(principal, credentials);
        this.loginMode = loginMode;
    }

}
